extern int distance[10];
extern int excursion[10];

extern HANDLE f;
extern HWND hWnd_Main;
extern HINSTANCE hInstance_Main;
extern const char (*SS2Word)[2];

extern HFONT hFont1, hFont1_U, hFont2, hFont3;

char *ShortToStr(char *str, SWORD dec);
char *UShortToStr(char *str, WORD dec);
char *UIntToStr(char *hex, DWORD dec);
char *UIntToHex(char *hex, DWORD dec);
char *UShortToHex(char *hex, WORD dec);
bool HexToInt(int *dec, char *hex);
bool HexToUShort(WORD *dec, char *hex);
SWORD StrToShort(SWORD *dec, char *str);
WORD StrToUShort(WORD *dec, char *str);
DWORD StrToUInt(DWORD *dec, char *str);
char *GetName(char *szName, DWORD pos, DWORD len=30);